package com.spark.incoicings.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.spark.incoicings.vo.OrderDetailVo;
import com.spark.invoicings.entity.OrderDetail;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface OrderDetailMapper extends BaseMapper<OrderDetail> {
    /**
     * 根据销售订单id查询明细
     * */
    List<OrderDetail> selectODetail(Integer id);

    List<OrderDetailVo> selectOrderDetailVo(Integer productId);

    List<Integer> selectProductIds();
}
